<?php
//DB Created by Rich L. a member in service in Northern Delaware.  Please feel free to share this code wherever it may be useful to alcholoics.  Should you have questons please contact me at sobernerd@gmail.com
require_once ('../../config/include_paths.php');
require_once ('../../admin/config.php');
require_once('../../admin/dbconnect.php');	// database connect script.
session_start();

if ($_SESSION['logged_in'] == 0) {
	die('You are not logged in so you cannot log out.');
}


unset($_SESSION['username']);
unset($_SESSION['password']);
// kill session variables
$_SESSION = array(); // reset session array
session_destroy();   // destroy session.
header('Location: ../index.php');
// redirect them to anywhere you like.
?>